write_redis: fix format of commands sent to redis