Fix: write UTF(English symbol) to file writing method, add require libraries for text extraction