Fixed save function to save char instead of int representation