sanitize location constructor