joyent/node — pull request #4119 by isaacs (2012-10-11 23:11:13+00:00)
Title: string_decoder: Add 'end' method, do base64 properly

Add an 'end' method to the StringDecoder class which just dumps the rest of whatever it's got. Also, use this to make `setEncoding('base64')` work properly.