clean base64stream constructor