Updated to support ghc 7.8

I've changed the ByteStrings to Text.

I'm still in the process of testing.