add utf16, system encoding (minimum).
add `encode` function, and output stream.