5000 chars is too tight for signatures containing base64-embedded images (even a small PNG can run a few thousand chars).