Properly encode location URI.