Properly format non-string dynamic property values.