Remove obsolete comment.
Move tests to another file.
Use EncodingRef rather than &'static Encoding