directory: add test for URL-looking dir names

closes #976