Allow request buffer to accept mixed encodings

Fixes #59 and undoes f7c75423ab2b7f0a5ef0847debfabf933af7df04 as suggested by @AaronLasseigne. Supersedes #60. Includes a test reproducing the error.