encoder.js :: implement encodePid
test :: add test to encode & decode a pid