Avoid leaking the encoding chooser sheet
Set the encoding window controller as window delegate

No reason for this other than it seems right.
Fix compatibility with 10.7
Simplify binding setup for encoding pop-up button