When Reading Documents, Respect `encoding` Option

This fixes the issue @hockeybuggy found in #2717.