finish string_decoder