This is a little bit misleading, as G is obviously not a HEX char. If secure password requires a capital letter, this should be taken care of in the place where the password is generated.