Added replace_url function to Utils