Flipped existing TSQL encode functions to return nvarchar.
Renaming encodeInt to encode1.
Finished renaming encodeInt to encode1.
Minor changes.
Updated TODO.
Added TSQL encode2 function.