fixes url encoding/decoding issues with certain characters.

refs RM ticket 2632