Use UTF8UrlEncoder.appendEncoded instead of encode, close #599