PROV-505 Prevent mysql barfing on improperly encoded UTF8 characters