Pull urlEncoding to a convenience method