replace blanks in location.href with %20. Needed for ios5 with phonegap. Fixes #156