Handle DSL and word forms input files not only as UTF-8, but also UTF-16LE and UTF-16BE.

Requires Ruby 1.9.2+ for automatic conversion from UTF-16 to UTF-8.

Also, the script can now be executed with any Ruby 1.8.7, 1.9.2, 1.9.3 and 2.0.0.