add LOC from RFC 1876
fix domain parsing

If the second byte is negative and the first byte is zero, the binary OR
will simply sign extend the second byte to int resulting in a negative
offset.