Fixed uri path and query encoding issues in HttpConnection

- Added context to throwing of url encoding in WebUtils.encodeUrl