Fix URI.escape deprecation warning; use URI.encode
Extract uri encoded string sanitizing methods
Use Encoding classes to represent encodings.

When using strings to represent encodings, typos may be discovered while running the code.  However, a typo in the Encoding constant raises an error at load.
Merge pull request #3 from bf4/extract_uri_encoding_sanitize_methods

Extract uri encoding sanitize methods