Bug 1061215 - [Messages][Refactoring] Improve handling of remaining chars counter. r=schung

forget about this comment and let me think some more; I see you changed the logic on when the code is invoked, I need to think whether all cases work :)