Correctly handle Unicode/UTF-8 terminal settings names.

Use UTF_8 encoding by default since we're dealing with OS X which defaults to UTF-8.