Support HDFS paths with unicode characters

Unicode characters in file names work fine with the WebHDFS REST API, but the client needs to encode the path when constructing the URI.