Make the dumping function properly santise strings before putting into Redis