fix filename having newlines