Refixes #325 - invalid charset declarations.

* All incorrect, non-lowercase charsets are being now removed.
* Removes stripping @IMPORT declarations.