base_convert for url_encode/decode function