[PATCH] lib/term: Quote tr character ranges to prevent glob expansion