fixes for import in textfile mode and removed sed from mysql dump that can break the output in some rare cases