handling encoded form strings
added tests