Got the same problem, but with with xml-import through h-inventory. Source of problem: xml-file was transferred from windows host, so contained carriage return characters and had unsupported??? encoding (UTF-8) Solution: Edit you file with vim/vi as follow :%s/\r//g and chenge encoding to Windows-1251. It works, at list for me.