correct file paths and add utf-8 encoding