Add :encode_with for proper YAML serialization
Merge pull request #216 from iantropov/issue_yaml

Add :encode_with to sql_literal for proper YAML serialization