incorrect strlen usage

- causes overflow for empty string
Merge pull request #2972 from MartinNowak/fix11750

incorrect strlen usage