Improved the linkify function to ensure links with no protocals get included