Do not leave space for a terminating '0' at the end of the dst buffer in decoded_content as the method does not write this '0'. The caller of the method shall take care of it instead. Issue #2644