adds base64 decoding (fixes #5656)