I'd say "You did nothing wrong, but the things we allow at home are sometimes frowned upon by the school - like curse words. But we will always be on your side when we know that you have done nothing wrong in your own soul. Schools rules are weird sometimes, but never hold back to find out how they feel. We have your back!"