use outputstream as an object, not a string. relax the Map typing to allow for mixed values. (sanparks patch)
use outputstream as an object, not a string. relax the Map typing to allow for mixed values. (sanparks patch)