Decode location.href to get consistent results on Firefox