Adds method for encoding parameters for URLs