Stringio output bugfix

a pull request for the issue described at https://github.com/tcocca/active_pdftk/issues/37