Fix some unused_mut/unused_result warnings
auto merge of #2323 : Manishearth/servo/warnings, r=Ms2ger

The `.encode()`s from where the unused_result warnings come from seem to wrap an `encode()` and return `Ok(())`.

They should probably bubble the result out.