Adds fallback for mb_strlen, fixes #1370