[cvs-nhc98] patch applied (yhc): Fixed base64 encoding so UTF-8 strings are correctly encoded