Platform independent encoding.