toNiceIdent() doesn't handle exclamation marks

Pull request corresponding to issue #896.