[mono-config] use right type for result of strlen