b58 conversion helpers for (procedural) php