make url parsing work in chrome
loading encoding.js if needed