When BadImageFormatException is not what it seems