[COMMIT] Fix a bug with VM and the console-tty-output-coding-system