Optimize `quote`.
Optimize `quote` to use character codes. Extract common strings into constants.
Clean up comments and global exports.