fixed encoding problem where REST params have question marks and other reserved chars