Fixed bug with zero-bytes inside key