prevent buffer overflow with Messages app