use alternative URI format and also ensure data is correctly flushed before reading - issue #135