Handle encoded characters by setting parsed encoding and output encoding
remove encoding definition before pass it back
fix preg_quote
rework encoding handling and extract logic to loadHtml method
remove insert tags replacement as it turned out that the test data were not properly encoded
Merge branch 'fix-encoding' into develop