Reverted encoding argument back to string