[Bug 5519] Setting encoding is needed