Sometimes one of the most difficult tasks of freelancing is getting clients to pay. Here’s how to avoid any issues.