optimized the strlen() call away

note that it does not include any terminating 0x00

and we definately should build in sanity checks to prevent crashing on invalid input data
also we're at risk for buffer overruns
Merge pull request #2 from flok99/patch-2

optimized the strlen() call away