Make sure encodeURL works correctly with non-urls