Adds better handling of invalid LongURLs