base64 encode strings - quick hacky fix for unicode problems