Fixes bug with double slashes in input. Fixes #7.