Fix space encoding.