Added explicit UTF-8 encoding in text file reading (JSON/HTML)