Add proper file encoding opening