Removed dependency on recent feature of GNU sed (\U).