generate_test_code.py doesn't support UTF-8 in .function files (but does in .data files) when run in a non-UTF-8 locale with Python <=3.6. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>