fix #1790 by using base64 encoding