Create NameUtils.php

Rough conversion of Hyperion's NameUtil class.