Fixes #1677. Provide URLSerializer.

#1677
Without this json4s is unable to parse URLs.