fixed ByteStream bug (path sanitization)