PLATFORM-922 Catch url decode errors and wrap them on a BadRequest (400) exception.