sanitize and format location