libfreerdp-crypto: fix base64 encoding, fix TS Gateway HTTPS authentication