fix tests in Ruby 1.8.7
set default subs on stem block

- set default subs on stem block as [:specialcharacters]
- remove redundant whitespace stripping in stem block
- minor code optimizations