main_loop_test.rb work on Windows! Using "#! ruby -E utf-8" and Stgring#encode.