Added base 64 encoding for UTF-8 support.