msg at this point in the method is value.strerror, or the string "UnicodeHandler error", not the msg object in the previous method. I'll change the name to make it clearer.