darcs patch: Add UTF8 converting and outputing functions