Refactoring CryptiApi#encode_url.