Test attribute setting with special characters.