[TASK] Added copyright headers to most files.
[BUGFIX] Fixed encoding when PHP default_charset is not UTF-8.

When hyphenating while preserving HTML tags, the text encoding
could get wrong if the PHP default_charset was not UTF-8. This
should work now.