bug fix: use base64 encoding for string conversion

Better compatibility with custom serializers