Fix bug with encoding new php version: 5.3.x

When call saveHTML(), it adds DOCTYPE(correct html) explicetly. Fiz it.
Also, convert back to original encoding from html-enteties.