Added explicit cast to the return value of strlen() in pico_protocol.c.

The cast tackles a warning only found when you compile the code for a
64-bit machine (64-bit size_t to uint32_t)