Parse url according to rfc 1738: add separate define for TLD.  Closes 376.