Nit: If we are operating on a narrow string, then `tchar` *can't* by `dchar`. So this entire function could be just:
```D
auto byDchar(R)(R r) if (isNarrowString!R)
{
    return r.byCodeUnit.byDchar();
}
```