base64 workaround for database logging encoding problems