SharePoint 2010, at least, has an odd format for storing its lists' hyperlink fields on the backend, namely it uses
[URL], [Description]
"Well then what does it do about commas in the URL" you might ask.
"It encodes them, right? Because that would be sane and easy to manage."
Nope. Interestingly, SP duplicates every comma in the URL but not the description.
So the URL and description
"http://butts.com/a,b,c,d,,,lol" and "Butts.com,,, i,s awe,,some"
becomes
"http://butts.com/a,,b,,c,,d,,,,,,lol, Butts.com,,, i,s awe,,some"
A simple web service call to lists.asmx or listdata.svc to pull items from a list that has a hyperlink column will return you data for that field that has to be parsed, obviously, before you can use the URL in an href, redirect, or anything else.
Now, URL's are not supposed to have commas in them in the first place, but any browser is going to internally escape any commas, so in practice, especially in SP with typical document file names, you end up with commas to deal with, so you really do need a bullet-proof method for handling SP's particular method of formatting.
I have an imperative solution, I think, but is there a more elegant way to handle all cases?