escape log field strings