Use strlen, fixes segfault