Fixed escaping of unicode character being passed to PostgreSQL