Tried to fix encoding issue when writing utf-8 features file.