PHP class to check if a string has platform dependent characters