Properly support string-literal property names and escape external module names.