[macros] Make sure the script runs in UTF-8 locale