fix truncate/empty string due to block cipher