Update utils.c

calling 'strlen(out)' on line 28 without having null-terminated 'out'.
Merge pull request #64 from Teuop/patch-1

Update utils.c