NXP-13160: Decode string returned by os.path.expanduser() with locale encoding as it might contain non ASCII characters