Improved recognition of http prefix

Using a NSURL to parse the initial string would allow for case
insensitive comparisons

Fixes #718