convert format errors from %x to gl_str()