coapfs: fix resource str handling and inc read buf