I've seen ths failing because the detected charset was wrong.