fixed PUT and POST routes to support the use of unicode byte length rather than strict text lenght