fixes escape character issue on URL encoding