fixed really stupid url handling (shame on me!), fixes #24