config: Fix decoding of exception message depending on locale