Fix socket receive and ascii decoder exception