Your loop will only convert first 8 characters (0-7).

Robert