Rename encodeUrl to encodeUrl.js