Fix for nchar issue

Fix for #89