eliminate isCaseDefEnd override by moving the logic into stock parser
use NameTransformer.encode for fresh name prefix sanitization