Ensuring HTTP method to be upper-case.
More reliable implementation of percent encoding.