added method to encode string literals as suggested by eed3si9n