Basic interface design. If you require data to be in a specific format, then only give the user those options as input. The country code example is easily solved with a select field whose values are proper ISO country designations.
This article just reads like the usual “think of something controversial to say and blog about it.”