Convert string to uint8