Fixed URI encoding problem with requirement string

When passing a requirement string with an unescaped URI character,
such as '>= 1.0.3' to puppet module install, an error would be raised.
Added URI escape to make_http_request to ensure all URIs are properly
escaped.
Fix encoding problem with test file
Merge branch 'pull-1460'