Wrapping getInputStream and getOutputStream in buffered streams (Fixes #132)