win32/replace.py: Fix replacing items in files with UTF-8 content