Ignore external encoding when testing BITOP.

Should fix #345.