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