Use an empty string as default encoding argument for encoding
Summary:
Nullable strings can be avoided when an empty string isn't a supported value.
This is a follow-up for 15ddc8ad7a9e.
Test Plan: New tests with default arguments provided.
Reviewers: dereckson
Reviewed By: dereckson
Differential Revision: https://devcentral.nasqueron.org/D1605