support for encoding string literals only once