fix to work with utf-8 text in dump

Added .encode('utf-8') so the script does not crash on cyrilic (and other language) characters in sql dump.