winpr: add new line ending, utf16 byte order swap functions