attempt to fix encoding problems of request params