Writing checks can be risky. Here's how to protect yourself.