Enforce nonnegative quality scores

Also fixed a bug in Phred encoder/decoder.