Put encoding setting at the beginning.