bug fix

ignore empty lines
bug fix

replace invalid filename chars