Fix bug where any encoding specified when creating an input stream would be replaced by UTF-8 if there was no charset detection callback provided, too. Tidy up the logic in this area, and add more commentary so it's clear.
Fix bug where any encoding specified when creating an input stream would be replaced by UTF-8 if there was no charset detection callback provided, too.
Tidy up the logic in this area, and add more commentary so it's clear.

svn path=/trunk/libparserutils/; revision=10899

servo/libparserutils,dunkelstern/libparserutils,dunkelstern/libparserutils,servo/libparserutils,dunkelstern/libparserutils,servo/libparserutils