Fix Validation for Page Type Name & Single Quote

Fix Validation for Page Type Name & Single Quote

Several locations of legacy javascript do not sanitize page type names
correctly.

- Prevent saving of Page Type Names containing single quotes

http://www.concrete5.org/developers/bugs/5-6-2-1/page-type-defaults-javascript-error-and-no-toolbar-if-page-type-/