Fix a bug in -[initWithContentsOfURL:encoding:].