Typing .IM leaves it at .IM, it means the TLD is not formatted correctly. I know there is rfc4343, but it just looks confusing to a recipient, its more of a bug than a feature.
Also, another way to fix this would be to cancel I'm if the text has a dot (.) before it. Because that would indicate a domain.