Ruby method for cleaning URL strings for display