Change type string to get base64-encoded for transmission aswell