adding utf-8 as argument to open

hopefuly fixing the comment by @matangover over by issue #1