fix ns.entityify in case of non-string argument