Fixed filename encoding issue in Network.Gitit.Cache.

Also simplified some Util code by using Text.Pandoc.UTF8 functions.