Fixed bug with bytes <-> string in getLockName()