Strip trailing newline from headers