Fixed an issue with encoding URI parameters