ConversionUtilsTest: use a more lenient regex

The tests failed on Jenkins, though I cannot reproduce even on the same
system elsewhere. But my guess is that not all Java objects use an
8-digit hex code, but rather some variable number of hex digits. So
let's be more lenient when checking our regex.

Hooray for non-deterministic tests!