[core] Fixed bytes writting in IoBuffer with null or empty string.
[core] Fixed cumulative bytes cycles to decoding.