URLencode $ and . in location.name when used as key