Fix RESUtils.urlencode per Hello71's suggestion

Closes #462