fix exception on database.dump with utf-8 formated strings