webservices REST API - Bad Request on encode URL