Modify lenfnm calling sequence to simplify unicode support.