Fix screenresolution and unicode problems