Streamline string encoding