Rename parse_spec to parser_spec to align with naming in lib.
Specify file encoding as UTF-8 for Ruby.
Add UTF-8 awareness for strings in Parser.