Jonathan Vollebregt : reg: Add wchar/type conversion functions.