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.

This patch also makes the rename method functional by URL encoding query parameters and ensuring the destination path contains a leading slash.