This tag is very dependent in the actual external encoding setup. Please check if this spec also doesn't fail if the external encoding is set to something other than UTF-8, because likely that causes it to pass by accident.