Literals with an empty name cause an IndexOutOfBoundsException in RDFMacroPipe.literal(). The method should check whether the string is empty before accessing the first character.
A check for null is not necessary since null is not a valid literal name.