Added Model.escape_string(str)