Set xml version & encoding.