fixed unicode error

open() wasn't given encoding kwarg