Update NameUtils.php

this file has an error somewhere.