when decoding now does not append a random char to the last spot