Dynamic size of converted hex string and possiblity to use custom output buffer.