improve base64url encode