Improved URL scheme input checking