Fix problem with saving if URL contains #