Avoid difference in tr semantics between System V and BSD