Fix out of bounds issue owith binary to ASCII