fix issue OAuth issue with non standard port, and some issue with utf-8