Fix for escaping characters when inserting a URL
fix for issue #274 regarding ordering of has_many relationship values when an order parameter is specified