create IRC.Encode module
use encodeUtf8 to convert ByteString
delete unneeded import
Merge branch use-text-type-in-internal branch