JAVA-657: ReadPreference ignored for some commands due to case-sensitive comparison