Fix unicode issues in generate_user_files.py See bug 66242

Change-Id: I3da2636e4e1bc8a9ee855727109230086f8a1c07