Api fixed base64string encoding