Move file encoding to before return #119