Added check for proper PROXY line termination, with accompanying regression
test.