[api] validate that titles do not exceed what mysql allows