SPARK-2686 Add Length support to Spark SQL and HQL and Strlen support to SQL

Rolled back changes that somehow got in from other PR's

SPARK-2686 after M. Armbrust comments

Rollback addition of length method for HiveQL since incompatible with Hive default encoding

SPARK-2686 Address comments  from chenghao-intel