Fix edge cases with url formatting when a not-quite-complete url is entered into the form. Fixes #27