Add a usedEncoding method to HTML5Parser, fix #121

Re-submitting #123 where Critic got confused because of an amended commit.