fix: shorten text if needed to avoid MySQL error