Suppress Windows terminal Unicode errors
Switch to optparse for 2.6 compatibility