Take advantage of QWidget::window()
Set default character encoding using options