better character handling for component names in require