core: Use conditional compilation for UTF-8 literals

Also remove the use of some curly quotes in the .erl files to keep the
conditional defines to a minimum.

Fixes #804

See https://github.com/zotonic/zotonic/issues/804#issuecomment-54030040