Move string encoding functions to their own directory

Change-Id: I71e7c809083646f1a176aa47f5f5e35c93a4b9ed
Reviewed-on: http://review.couchbase.org/36145
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>