URL helper can accept Dir objects fixes #9