Safe Haskell compatability

This patch makes pretty much every module of pandoc Trustworthy. I hope to convince the authors of the packages pandoc depends on to make their packages Trustworthy, at which point we can turn many of the Trustworthy modules to Safe. If there is some particular module that is not safe, please let me know.