write files using utf-8 - closes #1