extend the use of getFsEncoding function to all files
add import locale to variables.py