Updated to use toString method when recording URL strings, fixing #1 - thanks.