I can also confirm the ef bb bf [1] characters preceding the doctype - whether this is part of the problem I'm not qualified to say. [1] viewed in hex mode with notepad++