improved url detection for twitter