Added preliminary support for char16 to avoid crashes because of null parameter types.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>