add encoding to fix travis on 2.7