Try using ~~ instead of just ~. The quill is a bit touchy, and when it doesn't recognize something, I've found that using ~~ will still just write it rather than try a command, but ONLY on the one writing just after it stops working!
It's a sort of reset for the thing, so far as I can tell... And don't forget the text limit for one string.