Fixes language switch in Safari which urlencodes the url in JS.