This fixes https://github.com/D-Programming-Language/phobos/pull/1981.