Allow whitespace before encoding names when guessing file encodings from header