adds base64 decoding (fixes #5656)

fixes #5656