Changed clientlogs so that we are writing bytes as opposed to str.