fix bug in libnc::strlen()