fix to work with utf-8 text in dump