fixed first-line-bug in export
changed input encoding