DOMDocument incorrectly works if no encoding present. For example - https://500px.com/photo/123538155/ego%C3%AFste-by-alice-angelotti