lib: write: Remove unused variable.
lib: utf16: Fix const-correctness issues in _hivex_recode function.

This patch assumes that iconv doesn't actually modify the
input buffer, even though it is declared as char *.