Handle property access expressions in safe_format()