charmxi: refactor Entry::epStr to handle template argument generation